/*
 * codeutil.h
 *
 *  Created on: May 2, 2009
 *      Author: kuncai
 */

#ifndef CODEUTIL_H_
#define CODEUTIL_H_

#include <string>
using namespace std;
#include <string.h>
#include <zlib.h>
#include "buffer.h" 

#define MAXFILESIZE 10240 
class CodeUtil {
public:
	CodeUtil();
	virtual ~CodeUtil();
public:
	static int DeCodingDeflate(Buffer sMsg, Buffer* res);
	static int EnCodingDeflate(Buffer sMsg, Buffer* res);
};

#endif /* CODEUTIL_H_ */
